<div id="left">
                   <?php if(!$users->isUserLoggedIn()){ ?>
                   <div class="box togglemenu">
				<div class="content">
					<?php echo $cms->getContent('left_panel');?>
				</div>
			</div>
			<?php } else { ?>
			<div class="box submenu">
				<div class="content">
					<ul>
						<li><a href="upload.php">Upload</a></li>
						<li><a href="ftp_upload.php">FTP Upload</a></li>
						<li><a href="uploads.php">Manage Uploads</a></li>
						<li><a href="account.php">Edit Account</a></li>
						<li><a href="leaderboards.php">Leaderboards</a></li>
						<li><a href="referrals.php">Referrals</a></li>
						<li><a href="payment.php">Payments</a></li>
					</ul>
				</div>
			</div>
			<?php } ?>
			<div class="box statics">
				<div class="content">
					<ul>
						<li><h2>Site Statistics</h2></li>
						<li>Total users <div class="info red"><span><?php echo $statistics->getTotalUsers(); ?></span></div></li>
						<li>Total files <div class="info blue"><span><?php echo $statistics->getTotalUploads(); ?></span></div></li>
						<li>Total downloads <div class="info black"><span><?php echo $statistics->getTotalDownloads(); ?></span></div></li>
						<li>Total earnings <div class="info green"><span>$<?php echo $earnings->getTotalEarnings(); ?></span></div></li>
					</ul>
				</div>
			</div>
		</div>